<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/html">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <include file="./Public/Admin/header.html" />
    <style>
        .form-horizontal .control-group {
            margin-bottom: 10px;
        }
        .input-medium {
            width: 480px;
        }
        input {
            width: 450px;
        }
    </style>

</head>
<body>
<div id="main">
    <div class="container-fluid">

        <div class="row-fluid">
            <div class="span12">
                <div class="box">
                    <div class="box-title">
                        <div class="span10">
                            <?php if($_GET['action'] == 'add'):?>
                            <h3><i class="icon-edit"></i>班级添加</h3>
                            <?php else:?>
                            <h3><i class="icon-edit"></i>班级编辑</h3>
                            <?php endif;?>
                        </div>
                        <div class="span2"><a class="btn" href="javascript:void(0)" onclick="javascript:window.history.go(-1)">返回</a></div>
                    </div>

                    <div class="box-content">
                        <form action="{:U('edit')}" method="post" class="form-horizontal form-validate">

                            <div class="control-group">
                                <label for="name" class="control-label">班级名称：</label>
                                <div class="controls">
                                    <input type="text" name="name" id="name" class="input-medium" value="<?php echo $info['name']; ?>" data-rule-required="true" /><span class="maroon">*</span>
                                </div>
                            </div>
                            <div class="form-actions">
                                <input type="hidden" name="id" id="id" value="<?php echo $info['id']; ?>"/>
                                <input type="hidden" name="action" id="action" value="<?php echo $_GET['action']?>"/>
                                <button type="submit" class="btn btn-primary" id="btnsave">保存</button>

                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>
